Range minimum queries in minimal space
نویسندگان
چکیده
We consider the problem of computing a sequence range minimum queries. assume commands that contains values and Our goal is to quickly determine value exists between current position previous i . Range queries are used as sub-routine several algorithms, namely related string processing. propose data structure can process these command sequences. obtain efficient results for variations problem, in particular we O ( 1 ) time per offline version α n amortized online version, where inverse Ackermann function number sequence. This also has very small space requirements, ℓ maximum active positions. implemented our show it competitive against existing alternatives. comparable processing time, nanosecond range, much smaller requirements.
منابع مشابه
Encoding Range Minimum Queries
We consider the problem of encoding range minimum queries (RMQs): given an array A[1..n] of distinct totally ordered values, to pre-process A and create a data structure that can answer the query RMQ(i, j), which returns the index containing the smallest element in A[i..j], without access to the array A at query time. We give a data structure whose space usage is 2n + o(n) bits, which is asympt...
متن کاملFaster range minimum queries
Range Minimum Query (RMQ) is an important building brick of many compressed data structures and string matching algorithms. Although this problem is essentially solved in theory, with sophisticated data structures allowing for constant time queries, practical performance and construction time also matter. Additionally, there are offline scenarios in which the number of queries, q, is rather sma...
متن کاملPractical Range Minimum Queries Revisited
Finding the position of the minimal element in a subarray A[i..j] of an array A of size n is a fundamental operation in many applications. In 2011, Fischer and Heun presented the first index of size 2n+ o(n) bits which answers the operation in constant time for any subarray. The index can be computed in linear time and queries can be answered without consulting the original array. The most rece...
متن کاملFaster Batched Range Minimum Queries
Range Minimum Query (RMQ) is an important building brick of many compressed data structures and string matching algorithms. Although this problem is essentially solved in theory, with sophisticated data structures allowing for constant time queries, there are scenarios in which the number of queries, q, is rather small and given beforehand, which encourages to use a simpler approach. A recent w...
متن کاملTwo-Dimensional Range Minimum Queries
We consider the two-dimensional Range Minimum Query problem: for a static (m × n)-matrix of size N = mn which may be preprocessed, answer on-line queries of the form “where is the position of a minimum element in an axis-parallel rectangle?”. Unlike the onedimensional version of this problem which can be solved in provably optimal time and space, the higher-dimensional case has received much le...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2022
ISSN: ['1879-2294', '0304-3975']
DOI: https://doi.org/10.1016/j.tcs.2022.01.025